﻿package com.bizmlib.ui.scrolling
{
	import flash.events.Event;
	
	
	public class ScrollerEvent extends Event
	{
		public static const SCROLL:String = "scroll";
		public static const SLIDER_MOVE:String = "sliderMove";
		public static const SLIDER_RELEASE:String = "sliderRelease";
		public static const SCROLL_INVOKED:String = "scrollInvoked";
		/**
		 * SCROLL_COMPLETE event is dispatched only by a smoothscroller class when transitionTravellerSlide has completed its execution.
		 */
		public static const SCROLL_COMPLETE:String = "scrollComplete";
		
		
		private var __position:Number;
		
		
		public function ScrollerEvent(type:String, position:Number = 0)
		{
			super(type, true, true);
			
			__position = position;
		}
		
		
		public function get position():Number
		{
			return __position;
		}
		
		
		override public function toString():String
		{
			return "[com.bizmlib.ui.scrolling.ScrollerEvent	type=" + type + "	position=" + position + "]";
		}
	}
}